import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'

// import styleImport, { AntdResolve } from 'vite-plugin-style-import';  // antd4.xx 需要插件来按需引入

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react(),
  // styleImport({  // 按需引入配置
  //   resolves: [
  //     AntdResolve()
  //   ],
  // }),
  ],
  resolve: {
    alias: {
      "@": path.resolve(__dirname, './src')
    }
  }
})
